package com.xyrl.third.aliyun.util;

import com.aliyun.oss.model.ObjectListing;

/**
 * Copyright © 2018 重庆大鼎科技有限公司. All rights reserved.
 * 
 * @Title: OssPage.java 
 * @Prject: common-oss
 * @Package: com.dading.common.oss.page 
 * @Description: 分页封装
 * @author: 黄胜明  
 * @date: 2018年5月18日 下午4:37:28 
 * @version: V1.0   
 */
 
public class OssPage extends ObjectListing{
	/***
	 * 不定义最大查询条数，默认每次查询100条
	 */
	private static final int DEFAULT_MAX_KEYS_LIMIT = 100;
	private  Integer currentPage=1;
	private  Integer totalPage=0;
	private  Integer totalRows=0;
	public Integer getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public Integer getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(Integer totalRows) {
		this.totalRows = totalRows;
	}
	
	/***
	 * 
	 * @Title:OssPage
	 * @Description: OssPage对象封装
	 * @param maxKeys 每次最大查询条数
	 * @param currentPage 当前第多少页
	 */
	public OssPage(Integer maxKeys, Integer currentPage) {
		if(maxKeys<=0) {
			maxKeys=DEFAULT_MAX_KEYS_LIMIT;
		}
		super.setMaxKeys(maxKeys);
		this.currentPage = currentPage;
	}
	
	
	
}
